package com.biz.primus.ms.thirdlogin.degraded;

import com.biz.primus.base.exception.BizBusinessException;
import com.biz.primus.model.member.vo.MemberVo;
import com.biz.primus.ms.thirdlogin.feign.MemberFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * Member feign client熔断策略,统一以Degraded+{对应feign client类名}来命名
 *
 * @author jun.liu
 * @date 2017/9/19
 */
@Component
@Slf4j
public class DegradedMemberFeignClient implements MemberFeignClient
{
    @Override
    public MemberVo getMemberByMobile(String moblie)
    {
        return null;
    }

    @Override
    public MemberVo bindingSaveMemberByMobile(MemberVo vo)
    {
        throw new BizBusinessException("BindingSaveMemberByMobile Is Error");
    }
}
